package com.example.designpatterns.prototype;

import java.io.Serializable;

/**
 * 内部对象类
 * 作为引用类型属性，用于测试深克隆
 */
public class InnerObject implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String value;
    
    public InnerObject() {
    }
    
    public InnerObject(String value) {
        this.value = value;
    }
    
    public String getValue() {
        return value;
    }
    
    public void setValue(String value) {
        this.value = value;
    }
    
    @Override
    public String toString() {
        return "InnerObject{" +
                "value='" + value + '\'' +
                '}';
    }
} 